﻿using System;
using CCM = CodeCamp.Model;

namespace CodeCamp.Models.Email
{
    public class EmailContentItem : CCM.EmailItem
    {
        public EmailContentItem()
        {
        }
        public EmailContentItem(CCM.EmailItem source)
        {
            if (source != null)
            {
                this.Id = source.Id;

                this.CreatedBy = source.CreatedBy;
                this.CreatedUTC = source.CreatedUTC;
                this.CustomContent1 = source.CustomContent1;
                this.CustomContent2 = source.CustomContent2;
                this.EmailCampaign = source.EmailCampaign;
                this.EmailCampaignId = source.EmailCampaignId;
                this.EmailTo = source.EmailTo;
                this.EmailView = source.EmailView;
                this.Event = source.Event;
                this.EventId = source.EventId;
                this.FirstName = source.FirstName;
                this.LastName = source.LastName;
                this.Presenter = source.Presenter;
                this.PresenterId = source.PresenterId;
                this.ReplyToAddress = source.ReplyToAddress;
                this.Salutation = source.Salutation;
                this.SendStatus = source.SendStatus;
                this.SentBy = source.SentBy;
                this.SentUTC = source.SentUTC;
                this.SiteUser = source.SiteUser;
                this.SiteUserId = source.SiteUserId;
                this.Subject = source.Subject;
                this.TestMessage = source.TestMessage;
            }
        }
    }
}